import get_bind from '@dfeidao/atom-wxapp/form/get';
import { IFeidaoAiWeappPage } from '@dfeidao/atom-wxapp/interfaces';
import set_local from '@dfeidao/atom-wxapp/local/set';
import nodejs from '@dfeidao/atom-wxapp/msg/nodejs';
import render from '@dfeidao/atom-wxapp/render/render';

export default async function a002(fd: IFeidaoAiWeappPage) {
	const search = get_bind(fd, 'search');
	const page_size = 20;
	// app-fd_staff_findName
	const data = await nodejs('app-equip_list/s002', {
		systemid: '6641',
		sort: {
			retailer_store_no: 1
		},
		page_no: 1,
		page_size: 1,
		name: search
	});
	set_local(fd, 'page_size', page_size);
	set_local(fd, 'data', data);
	render(fd, { data });
}
